package com.test.contract;

import android.content.Context;
import android.widget.Toast;

/**
 * Anchor : Create by CimZzz
 * Time : 2020/06/07 15:07:39
 * Project : contract
 * Since Version : Alpha
 */
public class ToastUtils {
    private static Toast toast;

    public static void sendToast(Context context, String msg) {
        if(toast != null) {
            toast.cancel();
        }
        toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
        toast.show();
    }
}
